package com.xnyzc.lhy.mis.mapper.driver.wallet;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xnyzc.lhy.mis.entity.driver.wallet.OaDWallet;
import com.xnyzc.lhy.mis.entity.result.cms.driver.CmsOaDriverWalletListRes;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 司机钱包表 Mapper 接口
 * </p>
 *
 * @author zhuyubin
 * @since 2019-08-12
 */
public interface OaDWalletMapper extends BaseMapper<OaDWallet> {


    /**
     * 可提现金额
     * @return
     */
    CmsOaDriverWalletListRes getCashBanlanceSum(
            @Param("tag") String tag,
            @Param("userIdList") List<Long> userIdList
    );

    /**
     * 合计提现中金额
     * @return
     */
    CmsOaDriverWalletListRes getCashingBanlanceSum(
            @Param("tag") String tag,
            @Param("userIdList") List<Long> userIdList
    );

    /**
     * 合计冻结金额
     * @return
     */
    CmsOaDriverWalletListRes getFrozenBanlanceSum(
              @Param("tag") String tag,
              @Param("userIdList") List<Long> userIdList
    );

}
